package bjtu.cit.bookshop.service;


import bjtu.cit.bookshop.entities.Book;

import java.util.List;

/**
 * Created by jia19 on 2015/9/21.
 */
public interface IBookService {

    public Book getBookById(int id);

    public int createABook(Book book);

    public int deleteBookById(int id);

    public int updateBookInfo(Book book);

    public List<Book> getBookByNotNullField(Book book);

    public List<Book> getBookList(int num, int offset);

    public int getBookListLength();

    public List<Book> search(Book book);

}
